﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EmbDocumentInhalatorSetup.ToolClasses
{
    public class Solution
    {
        public string SolutionID { get; set; }

        public bool IsSharpoint14Solution { get; set; }

        public bool IsInstalledOnServer { get; set; }

        public InstallAction InstallActionToPerform { get; set; }

        public FeatureCollection<Feature> SolutionFeatures { get; set; }

        public string FullPathToWsp { get; set; }
       
    }

    /// <summary>
    /// Install Action to be performed for
    /// feature.
    /// </summary>
    public enum InstallAction
    {
        /// <summary>
        /// Install the feature.
        /// </summary>
        Install = 1,
        /// <summary>
        /// Uninstall the feature.
        /// </summary>
        Uninstall,
        /// <summary>
        /// Update the feature.
        /// </summary>
        Update,
        /// <summary>
        /// Repair the feature.
        /// </summary>
        Repair,
        /// <summary>
        /// Ignore the solution
        /// </summary>
        Ignore
    }
}
